/* 基础样式 */
:root {
    --mcp-primary-color: #3498db;
    --mcp-secondary-color: #2c3e50;
    --mcp-bg-color: #f5f5f5;
    --mcp-text-color: #333;
    --mcp-border-color: #ddd;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: var(--mcp-text-color);
    background-color: var(--mcp-bg-color);
}

/* 容器布局 */
.mcp-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏样式 */
.mcp-sidebar {
    width: 250px;
    background-color: var(--mcp-secondary-color);
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.mcp-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mcp-nav-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mcp-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 内容区域样式 */
.mcp-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mcp-prototype-view {
    min-height: 100%;
    position: relative; /* 确保作为定位上下文 */
    overflow: visible; /* 允许标记显示在容器外 */
}

/* 辅助区域样式 */
.mcp-helper {
    width: 300px;
    background-color: white;
    border-left: 1px solid var(--mcp-border-color);
    transition: all 0.3s ease;
}

.mcp-helper-content {
    padding: 20px;
}

/* 按钮样式 */
.mcp-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

/* 标记样式 */
.mcp-marker {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    transform: none;
    transition: transform 0.2s ease-out;
    cursor: pointer;
    z-index: 2147483647;
}

.mcp-marker::after {
    content: attr(data-marker);
    position: absolute;
    left: 20px;
    top: 0;
    background: white;
    padding: 6px 10px;
    min-width: 120px;
    white-space: nowrap;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.mcp-marker:hover::after {
    display: block;
}

.mcp-highlight {
    animation: highlight 2s ease-out;
    box-shadow: 0 0 0 2px var(--mcp-primary-color);
}

@keyframes highlight {
    0% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0.3); }
    100% { box-shadow: 0 0 0 2px var(--mcp-primary-color); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mcp-sidebar, .mcp-helper {
        position: absolute;
        z-index: 100;
        height: 100%;
    }
    
    .mcp-sidebar {
        left: -250px;
    }
    
    .mcp-helper {
        right: -300px;
    }
    
    .mcp-sidebar.active {
        left: 0;
    }
    
    .mcp-helper.active {
        right: 0;
    }
}